const Layout = () => import('../views/layout/Layout.vue')

// 定义service相关的路由映射
export const serviceRoutes = {
    path: "/service",
    component: Layout,
    redirect: "/service/list",
    children: [
        {
            path: 'list',
            component: ()=> import('../views/service/List.vue')
        },
        {
            path: 'create',
            component: ()=> import('../views/service/Create.vue')
        },
        {
            path: 'edit',
            component: ()=> import('../views/service/Edit.vue')
        }
    ]
}
// 定义ingress路由映射
export const ingressRoutes = {
    path: "/ingress",
    component: Layout,
    redirect: "/ingress/list",
    children: [
        {
            path: 'list',
            component: ()=> import('../views/ingress/List.vue')
        },
        {
            path: 'create',
            component: ()=> import('../views/ingress/Create.vue')
        },
        {
            path: 'edit',
            component: ()=> import('../views/ingress/Edit.vue')
        }
    ]
}
// 定义endpoint路由映射
export const endpointRoutes = {
    path: "/endpoint",
    component: Layout,
    redirect: "/endpoint/list",
    children: [
        {
            path: 'list',
            component: ()=> import('../views/endpoint/List.vue')
        },
        {
            path: 'create',
            component: ()=> import('../views/endpoint/Create.vue')
        },
        {
            path: 'edit',
            component: ()=> import('../views/endpoint/Edit.vue')
        }
    ]
}